﻿using System;

using Sunyi.Project.WebPoint.DataContract;

namespace Sunyi.Project.WebPoint.DataAccessController
{
    public partial class AttachmentDaoController
    {
        public override Attachment Select(Guid id)
        {
            Attachment attachment = base.Select(id);
            attachment.Saved = true;

            return attachment;
        }

        public override void Insert(Attachment attachment)
        {
            base.Insert(attachment);

            attachment.Saved = true;
        }
    }
}
